function scoreFun(object,opts)
{
	var defaults={fen_d:16,ScoreGrade:10,
			types:["很不满意","差得太离谱，与卖家描述的严重不符，非常不满","不满意",
			       "部分有破损，与卖家描述的不符，不满意","一般","质量一般","没有卖家描述的那么好"
			       ,"满意","质量不错，与卖家描述的基本一致，还是挺满意的","非常满意","质量非常好，与卖家描述的完全一致，非常满意"],
			       nameScore:"fenshu",parent:"star_score",attitude:"attitude"};
	            options=$.extend({},defaults,opts);
	            var countScore=object.find("."+options.nameScore);
	            var startParent=object.find("."+options.parent);
	            var atti=object.find("."+options.attitude);
	            var now_cli;
	            var fen_cli;
	            var atu;
	            var fen_d=options.fen_d;
	            var len=options.ScoreGrade;startParent.width(fen_d*len);
	            var preA=(5/len);
	            
	            var xing1=$("#tempfenshu1").val()-1;
	            var xing2=$("#tempfenshu2").val()-1;
	            
	            for(var i=0;i<len;i++){
	            	var newSpan ;
	            	//TODO i代表第几个星变色
	            	if(object.selector=="#starttwo"){
	            	if(i!=xing1){
	            		var newSpan=$("<a id="+i+" href='javascript:void(0)'></a>");
	            	}else{
	            		var newSpan=$("<a id="+i+" href='javascript:void(0)' class='clibg'></a>");
	            	}
	            	}else if(object.selector=="#starttwo1"){
	            	if(i!=xing2){
	            		var newSpan=$("<a id="+i+" href='javascript:void(0)'></a>");
	            	}else{
	            		var newSpan=$("<a id="+i+" href='javascript:void(0)' class='clibg'></a>");
	            	}
	            	}
	            	if ((navigator.userAgent.indexOf('MSIE') >= 0) && (navigator.userAgent.indexOf('Opera') < 0)) 
	            	{
   						newSpan.css({"margin-left":"720px","margin-top":"-1%","width":fen_d*(i+1),"z-index":len-i});
					}else{
	            	newSpan.css({"margin-left":"660px","margin-top":"-1%","width":fen_d*(i+1),"z-index":len-i});
					}
	            	newSpan.appendTo(startParent)
	            	
	            	}startParent.find("a").each(
	            			function(index,element){
	            			if(object.selector=="#starttwo1"){
	            				$(this).click(
	            						function(){
	            						now_cli=index;show(index,$(this))}
	            						);
	            			}
	            			
	            					});
	          function show(num,obj){
	          var n=parseInt(num)+1;
	          var lefta=num*fen_d;
	          var ww=fen_d*n;
	          var scor=preA*n;
	          atu=options.types[parseInt(num)];
	          object.find("a").removeClass("clibg");
	          obj.addClass("clibg");
	          obj.css({"width":ww,"left":"0"});
	          countScore.text(scor);atti.text(atu)}
};
	            	
	            	
	            	
